//
//  ImageTableViewCell.m
//  Frame
//
//  Created by 这是工作本 on 16/1/8.
//  Copyright © 2016年 这是工作本. All rights reserved.
//

#import "ImageTableViewCell.h"

@interface ImageTableViewCell ()
@property (nonatomic, retain) UIImageView *image;
@end

@implementation ImageTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}


- (void)data:(NSString *)imageStr
{
    
    self.image.image = [UIImage imageNamed:imageStr];
    self.image.layer.cornerRadius = 15 * ScreenWidth;
    self.image.clipsToBounds = YES;


}

- (void)create
{
    
    
    
    self.image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width - 30 * ScreenWidth, 150 * ScreenHeigth)];
    [self.contentView addSubview:self.image];

}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
